package com.zhang.modules.mianShi.service.impl;

import com.zhang.common.jpa.service.impl.BaseServiceImpl;
import com.zhang.modules.mianShi.entity.Equipment;
import com.zhang.modules.mianShi.entity.cmd.equipment.EquipmentPageCmd;
import com.zhang.modules.mianShi.rep.EquipmentRep;
import com.zhang.modules.mianShi.service.IEquipmentService;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

@Service
public class EquipmentService extends BaseServiceImpl<EquipmentRep, Equipment,String> implements IEquipmentService {
    @Override
    public Page<Equipment> page(EquipmentPageCmd pageCmd) {
        return getRep().findAllBySystemId(pageCmd.getSystemId(),pageCmd.getPage());
    }
}
